]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
baseAppView: Remove unused BaseAppView.addItem
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 2 Jul 2019 13:12:08 +0000 (10:12 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 6 Aug 2019 00:20:31 +0000 (21:20 -0300)
Now that BaseAppView does not allow for subclasses to add
and remove items directly, the addItem() method can be
removed.

Remove BaseAppView.addItem().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645

js/ui/appDisplay.js

index d74630b98c679f40f13a2250a8fdd995bf410d0a..d222e9610ec6080e86ca19346968e2a949f33c33 100644 (file)
@@ -149,12 +149,6 @@ class BaseAppView {
         return this._allItems;
     }
 
-    addItem(icon) {
-        let id = icon.id;
-        this._allItems.push(icon);
-        this._items[id] = icon;
-    }
-
     _compareItems(a, b) {
         return a.name.localeCompare(b.name);
     }